package cn.wokoba.dao.mapper;



import cn.wokoba.dao.pojo.RaffleActivity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

//抽奖活动
@Mapper
public interface RaffleActivityMapper extends BaseMapper<RaffleActivity> {

    @Update("update raffle_activity set state = #{endState} where  activity_id = #{activityId} and state= #{currState}")
    void alterActivityStateByActivityId(Long activityId, String currState, String endState);
}
